<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String fileId = request.getParameter("fileId");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>选择导入对象</title>
    <c:import url="/liger/liger.jsp"></c:import>
    
    <script type="text/javascript">
    
    function f_dataContro(typeName){
    	var url = "<%=basePath%>hrController.do?"+typeName+"&saveFileId="+'<%=fileId%>';
    	$.ligerDialog.waitting("操作进行中,请稍后...");
    	
    	$.ajax({
               url: url,
               type: "post",
               //data: { id: '0' },
               dataType: "json",
               success: function(msg) {
                  alert(msg.msg);
               },
               error: function(XMLHttpRequest, textStatus, errorThrown) {
               	   alert("操作错误: "+XMLHttpRequest.status);
				   //alert(XMLHttpRequest.status);
                   //alert(XMLHttpRequest.readyState);
                   //alert(textStatus);
               },
               complete: function(XMLHttpRequest, textStatus) {
                  $.ligerDialog.closeWaitting();
               }
           });
    }
    </script>
    <style type="text/css">
    	html body{margin:0px; overflow:hidden;}
    </style>
  </head>
  
  <body>
    <table class="list"  border=0 cellspacing=1 cellpadding=0>
    	<tr><th>文件序号</th>
    	    <th colspan=2><%=fileId%></th></tr>
    	<tr><th>科目名称</th><th>历史清空操作&nbsp;&nbsp; </th><th>续加操作&nbsp;&nbsp;  </th></tr>
    	<tr><td>员工休假情况</td><td><a href="javascript:f_dataContro('xjClear');">清空历史</a></td><td><a href="javascript:f_dataContro('xjImpl');">继续导入</a></td></tr>
    	<tr><td>劳务工授权奖金</td><td><a href="javascript:f_dataContro('lwClear');">清空历史</a></td><td><a href="javascript:f_dataContro('lwImpl');">继续导入</a></td></tr>
    	<tr><td>外包人员授权奖金</td><td><a href="javascript:f_dataContro('wbClear');">清空历史</a></td><td><a href="javascript:f_dataContro('wbImpl');">继续导入</a></td></tr>
    </table>
  </body>
</html>
